package com.contory.ssn_lgnd.app.maingame;

import java.util.LinkedList;

import com.contory.ssn_lgnd.app.comp.UpdatePtr;

public class ColisionManager {
	LinkedList<ColiObjPtr> dynamicColiList;
	LinkedList<ColiObjPtr> staticColiList;
	LinkedList<EventNotifier> eventObjList;
	
	public ColisionManager(){
		dynamicColiList = new LinkedList<ColiObjPtr>();
		staticColiList = new LinkedList<ColiObjPtr>();
		eventObjList = new LinkedList<EventNotifier>();
	}
	
	//-----event list
	public void addEventObj(EventNotifier evenObj){
		eventObjList.add(evenObj);
	}

	public LinkedList<EventNotifier> getEventObjList(){
		return eventObjList;
	}

	public void removeEventObj(EventNotifier evenObj){
		eventObjList.remove(evenObj);
	}
	
	//----- dynamic list
	public LinkedList<ColiObjPtr> getDynamicObjList(){
		return dynamicColiList;
	}
	
	public void addDynamicColiObj(ColiObjPtr coliObj){
		dynamicColiList.add(coliObj);
	}
	
	public void removeDynamicObj(ColiObjPtr coliObj){
		dynamicColiList.remove(coliObj);
	}
	
	//---- static list
	public LinkedList<ColiObjPtr> getStaticObjList(){
		return staticColiList;
	}
	
	public void addStaticColiObj(ColiObjPtr coliObj){
		staticColiList.add(coliObj);
	}
	
	public void removeStaticColiObj(ColiObjPtr coliObj){
		staticColiList.remove(coliObj);
	}
	//----
	
	public void staticColiOjbClear(){
		staticColiList.clear();
	}
}
